package com.prwan.msnotify.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Auther: zhy
 * @Date: 2019/7/11
 * @Description: 短信验证发送监听器
 */
@Component
@RabbitListener(queues = "sms")
public class SmsListener {

    @RabbitHandler
    public void sendSms(String massage) {
        System.out.println("处理监听信息");
    }

}
